QT += widgets network concurrent dbus x11extras svg
QT += KWindowSystem KWaylandClient KWaylandServer KIconThemes

TEMPLATE = lib
DEFINES += SCREENCAPSDK_LIBRARY

CONFIG += c++11
DEFINES += QT_DEPRECATED_WARNINGS

LIBS +=-lpthread
LIBS +=-lX11 -ldbus-1 -lsystemd
INCLUDEPATH += /usr/include/dbus-1.0/ \
               /usr/include/systemd/

CONFIG += link_pkgconfig
PKGCONFIG += gsettings-qt dbus-1 systemd
QMAKE_CXXFLAGS += -Wall -ggdb -Wno-implicit-fallthrough

SOURCES += \
    kysdk-log/core.c \
    kysdk-log/format.c \
    kysdk-log/gsettingsparse.c \
    kysdk-log/jsonparse.c \
    kysdk-log/klog_dump.c \
    kysdk-log/klog_mqueue.c \
    kysdk-log/libkyconf.c \
    kysdk-log/libkylog.c \
    kysdk-log/log.cpp \
    kysdk-log/structparse.c \
    kysdk-log/write.c \
    kysdk-log/writeFile.c \
    kysdk-log/xmlparse.c \
    kysdk-qtwidgets/gsettings.cpp \
    kysdk-qtwidgets/kaboutdialog.cpp \
    kysdk-qtwidgets/kaddfilebutton.cpp \
    kysdk-qtwidgets/karrowtabbar.cpp \
    kysdk-qtwidgets/kbackgroundgroup.cpp \
    kysdk-qtwidgets/kbadge.cpp \
    kysdk-qtwidgets/kballontip.cpp \
    kysdk-qtwidgets/kborderbutton.cpp \
    kysdk-qtwidgets/kborderlessbutton.cpp \
    kysdk-qtwidgets/kbreadcrumb.cpp \
    kysdk-qtwidgets/kbubblewidget.cpp \
    kysdk-qtwidgets/kbuttonbox.cpp \
    kysdk-qtwidgets/kclocktimer.cpp \
    kysdk-qtwidgets/kcolorbutton.cpp \
    kysdk-qtwidgets/kcolorcombobox.cpp \
    kysdk-qtwidgets/kcomboboxwidget.cpp \
    kysdk-qtwidgets/kcommentpanel.cpp \
    kysdk-qtwidgets/kcrumb.cpp \
    kysdk-qtwidgets/kcustomdateedit.cpp \
    kysdk-qtwidgets/kcustomtabbar.cpp \
    kysdk-qtwidgets/kdialog.cpp \
    kysdk-qtwidgets/kdragwidget.cpp \
    kysdk-qtwidgets/kfilewidget.cpp \
    kysdk-qtwidgets/kiconbar.cpp \
    kysdk-qtwidgets/kinputdialog.cpp \
    kysdk-qtwidgets/kintrowidget.cpp \
    kysdk-qtwidgets/kitemwidget.cpp \
    kysdk-qtwidgets/klabel.cpp \
    kysdk-qtwidgets/klineedit.cpp \
    kysdk-qtwidgets/klineframe.cpp \
    kysdk-qtwidgets/klistview.cpp \
    kysdk-qtwidgets/klistviewdelegate.cpp \
    kysdk-qtwidgets/klistwidget.cpp \
    kysdk-qtwidgets/kloopplaypage.cpp \
    kysdk-qtwidgets/klunarcalendarinfo.cpp \
    kysdk-qtwidgets/klunardateedit.cpp \
    kysdk-qtwidgets/kmenubutton.cpp \
    kysdk-qtwidgets/kmessagebox.cpp \
    kysdk-qtwidgets/kminicalendaritem.cpp \
    kysdk-qtwidgets/kminicalendarwidget.cpp \
    kysdk-qtwidgets/knativetabbar.cpp \
    kysdk-qtwidgets/knavigationbar.cpp \
    kysdk-qtwidgets/knavigationtrail.cpp \
    kysdk-qtwidgets/kpasswordedit.cpp \
    kysdk-qtwidgets/kpixmapcontainer.cpp \
    kysdk-qtwidgets/kpressbutton.cpp \
    kysdk-qtwidgets/kprogressbar.cpp \
    kysdk-qtwidgets/kprogresscircle.cpp \
    kysdk-qtwidgets/kprogressdialog.cpp \
    kysdk-qtwidgets/kprogresslabel.cpp \
    kysdk-qtwidgets/kpushbutton.cpp \
    kysdk-qtwidgets/ksearchlineedit.cpp \
    kysdk-qtwidgets/ksecuritylevelbar.cpp \
    kysdk-qtwidgets/ksecurityquestiondialog.cpp \
    kysdk-qtwidgets/kshadowhelper.cpp \
    kysdk-qtwidgets/kslider.cpp \
    kysdk-qtwidgets/kswitchbutton.cpp \
    kysdk-qtwidgets/ktabbar.cpp \
    kysdk-qtwidgets/ktableheaderview.cpp \
    kysdk-qtwidgets/ktablemodel.cpp \
    kysdk-qtwidgets/ktableview.cpp \
    kysdk-qtwidgets/ktag.cpp \
    kysdk-qtwidgets/ktextedit.cpp \
    kysdk-qtwidgets/ktitlewindow.cpp \
    kysdk-qtwidgets/ktoolbutton.cpp \
    kysdk-qtwidgets/ktranslucentfloor.cpp \
    kysdk-qtwidgets/kwidget.cpp \
    kysdk-qtwidgets/kwindowbuttonbar.cpp \
    kysdk-qtwidgets/parmscontroller.cpp \
    kysdk-qtwidgets/themeController.cpp \
    kysdk-qtwidgets/xatom-helper.cpp \
    kysdk-waylandhelper/ukuistylehelper/ukui-decoration-core.c \
    kysdk-waylandhelper/ukuistylehelper/ukui-decoration-manager.cpp \
    kysdk-waylandhelper/ukuistylehelper/ukuistylehelper.cpp \

HEADERS += \
    kysdk-log/core.h \
    kysdk-log/cstring-extension.h \
    kysdk-log/datatype.h \
    kysdk-log/format.h \
    kysdk-log/gsettingsparse.h \
    kysdk-log/jsonparse.h \
    kysdk-log/kerr.h \
    kysdk-log/klog_dump.h \
    kysdk-log/klog_mqueue.h \
    kysdk-log/libkyconf.h \
    kysdk-log/libkylog.h \
    kysdk-log/log.hpp \
    kysdk-log/sdkmarcos.h \
    kysdk-log/structparse.h \
    kysdk-log/write.h \
    kysdk-log/writeFile.h \
    kysdk-log/xmlparse.h \
    kysdk-qtwidgets/gsettings.hpp \
    screencapsdk_global.h \
    kysdk-qtwidgets/accessinfohelper.h \
    kysdk-qtwidgets/kaboutdialog.h \
    kysdk-qtwidgets/kaddfilebutton.h \
    kysdk-qtwidgets/karrowtabbar.h \
    kysdk-qtwidgets/kbackgroundgroup.h \
    kysdk-qtwidgets/kbadge.h \
    kysdk-qtwidgets/kballontip.h \
    kysdk-qtwidgets/kborderbutton.h \
    kysdk-qtwidgets/kborderlessbutton.h \
    kysdk-qtwidgets/kbreadcrumb.h \
    kysdk-qtwidgets/kbubblewidget.h \
    kysdk-qtwidgets/kbuttonbox.h \
    kysdk-qtwidgets/kclocktimer.h \
    kysdk-qtwidgets/kcolorbutton.h \
    kysdk-qtwidgets/kcolorcombobox.h \
    kysdk-qtwidgets/kcomboboxwidget.h \
    kysdk-qtwidgets/kcommentpanel.h \
    kysdk-qtwidgets/kcrumb.h \
    kysdk-qtwidgets/kcustomdateedit.h \
    kysdk-qtwidgets/kcustomtabbar.h \
    kysdk-qtwidgets/kdialog.h \
    kysdk-qtwidgets/kdragwidget.h \
    kysdk-qtwidgets/kfilewidget.h \
    kysdk-qtwidgets/kiconbar.h \
    kysdk-qtwidgets/kinputdialog.h \
    kysdk-qtwidgets/kintrowidget.h \
    kysdk-qtwidgets/kitemwidget.h \
    kysdk-qtwidgets/klabel.h \
    kysdk-qtwidgets/klineedit.h \
    kysdk-qtwidgets/klineframe.h \
    kysdk-qtwidgets/klistview.h \
    kysdk-qtwidgets/klistviewdelegate.h \
    kysdk-qtwidgets/klistwidget.h \
    kysdk-qtwidgets/kloopplaypage.h \
    kysdk-qtwidgets/klunarcalendarinfo.h \
    kysdk-qtwidgets/klunardateedit.h \
    kysdk-qtwidgets/kmenubutton.h \
    kysdk-qtwidgets/kmessagebox.h \
    kysdk-qtwidgets/kminicalendaritem.h \
    kysdk-qtwidgets/kminicalendarwidget.h \
    kysdk-qtwidgets/knativetabbar.h \
    kysdk-qtwidgets/knavigationbar.h \
    kysdk-qtwidgets/knavigationtrail.h \
    kysdk-qtwidgets/kpasswordedit.h \
    kysdk-qtwidgets/kpixmapcontainer.h \
    kysdk-qtwidgets/kpressbutton.h \
    kysdk-qtwidgets/kprogressbar.h \
    kysdk-qtwidgets/kprogresscircle.h \
    kysdk-qtwidgets/kprogressdialog.h \
    kysdk-qtwidgets/kprogresslabel.h \
    kysdk-qtwidgets/kpushbutton.h \
    kysdk-qtwidgets/ksearchlineedit.h \
    kysdk-qtwidgets/ksecuritylevelbar.h \
    kysdk-qtwidgets/ksecurityquestiondialog.h \
    kysdk-qtwidgets/kshadowhelper.h \
    kysdk-qtwidgets/kslider.h \
    kysdk-qtwidgets/kswitchbutton.h \
    kysdk-qtwidgets/ktabbar.h \
    kysdk-qtwidgets/ktableheaderview.h \
    kysdk-qtwidgets/ktablemodel.h \
    kysdk-qtwidgets/ktableview.h \
    kysdk-qtwidgets/ktag.h \
    kysdk-qtwidgets/ktextedit.h \
    kysdk-qtwidgets/ktitlewindow.h \
    kysdk-qtwidgets/ktoolbutton.h \
    kysdk-qtwidgets/ktranslucentfloor.h \
    kysdk-qtwidgets/kwidget.h \
    kysdk-qtwidgets/kwindowbuttonbar.h \
    kysdk-qtwidgets/parmscontroller.h \
    kysdk-qtwidgets/themeController.h \
    kysdk-qtwidgets/xatom-helper.h \
    kysdk-waylandhelper/ukuistylehelper/ukui-decoration-client.h \
    kysdk-waylandhelper/ukuistylehelper/ukui-decoration-manager.h \
    kysdk-waylandhelper/ukuistylehelper/ukuistylehelper.h \

#RESOURCES += sdk_res.qrc

CONFIG(release, debug|release):{
DESTDIR = $$PWD/../Bin/Release
}
else:CONFIG(debug, debug|release):{
DESTDIR = $$PWD/../Bin/Debug
}

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target

TRANSLATIONS += translations/gui_zh_CN.ts \
                translations/gui_bo_CN.ts \
                translations/gui_zh_HK.ts \
                translations/gui_mn_MN.ts

CONFIG += lrelease embed_translations
QM_FILES_RESOURCE_PREFIX = /translations/
